<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .i{
            position: relative; 
            margin-left: 100px;
        }
        img{
            position: absolute; 
            transition:  .3s linear;
        }
        .i1{ 
            left: 0px;
        }
        .i2{ 
            left: 0px;
        }
        .i3{ 
            left: 0px;
        }
        .i4{ 
            left: 70px;
        }
        .i:hover .i1{
            left: -70px; 
        } 
        .i:hover .i3{
            left: 70px; 
        }
        .i:hover .i4{
            left: 140px; 
        }

    </style>
</head>
<body>
    <div class="i">
        <img class="i1" src="1.png" alt="">
        <img class="i2" src="2.png" alt="">
        <img class="i3" src="3.png" alt="">
        <img class="i4" src="4.png" alt="">
    </div>
</body>
</html>